
package org.dyndns.cooland.updater.db.model;

import java.io.Serializable;

public class Addon implements Serializable, Bean {
	
	private static final long	serialVersionUID	= -301552421094312267L;
	
	int							id;
	int							site_id;
	int							category_id;
	String						name				= "";
	String						version				= "";
	String						description			= "";
	String						source				= "";
	int							size;
	String						checksum			= "";
	
	// List<Author> authors;
	
	public Addon () {

	}
	
	public Addon (int id, int siteId, int categoryId, String name,
			String version, String description, String source, int size,
			String checksum) {

		super();
		this.id = id;
		site_id = siteId;
		category_id = categoryId;
		this.name = name;
		this.version = version;
		this.description = description;
		this.source = source;
		this.size = size;
		this.checksum = checksum;
		// this.authors = authors;
	}
	
	/*
	 * public List<Author> getAuthors() {
	 * 
	 * return authors; }
	 * 
	 * public void setAuthors(List<Author> authors) {
	 * 
	 * this.authors = authors; }
	 */

	public int getId() {

		return id;
	}
	
	public void setId(int id) {

		this.id = id;
	}
	
	public int getSite_id() {

		return site_id;
	}
	
	public void setSite_id(int siteId) {

		site_id = siteId;
	}
	
	public int getCategory_id() {

		return category_id;
	}
	
	public void setCategory_id(int categoryId) {

		category_id = categoryId;
	}
	
	public String getName() {

		return name;
	}
	
	public void setName(String name) {

		this.name = name;
	}
	
	public String getVersion() {

		return version;
	}
	
	public void setVersion(String version) {

		this.version = version;
	}
	
	public String getDescription() {

		return description;
	}
	
	public void setDescription(String description) {

		this.description = description;
	}
	
	public String getSource() {

		return source;
	}
	
	public void setSource(String source) {

		this.source = source;
	}
	
	public int getSize() {

		return size;
	}
	
	public void setSize(int size) {

		this.size = size;
	}
	
	public String getChecksum() {

		return checksum;
	}
	
	public void setChecksum(String checksum) {

		this.checksum = checksum;
	}
	
	public String toString() {

		StringBuffer sb = new StringBuffer();
		sb.append("AddonsBean details \n");
		sb.append("id:" + getId());
		sb.append(", ");
		sb.append("site_id:" + getSite_id());
		sb.append(", ");
		sb.append("category_id:" + getCategory_id());
		sb.append(", ");
		sb.append("name:" + getName());
		sb.append(", ");
		sb.append("version:" + getVersion());
		sb.append(", ");
		sb.append("description:" + getDescription());
		sb.append(", ");
		sb.append("source:" + getSource());
		sb.append(", ");
		sb.append("size:" + getSize());
		sb.append(", ");
		sb.append("checksum:" + getChecksum());
		return sb.toString();
	}
}
